﻿using GalaSoft.MvvmLight;

namespace Mal.Balades.Admin.ViewModels.VisitViewModels.Edit
{
    public abstract class TabViewModelBase : ViewModelBase, ITabItemViewModel
    {
        #region Fields
        private VisitViewModel sourceVisit;
        private VisitEditViewModel parentViewModel;
        private bool addCommandEnabled = false;
       
			
        #endregion

        #region Construction / Destruction
        public TabViewModelBase(VisitEditViewModel parent)
        {
            this.parentViewModel = parent;
            this.SourceVisit = parent.SourceVisit;
        }
        #endregion

        #region enum, struct, class

        #endregion

        #region Properties
        public VisitViewModel SourceVisit
        {
            get { return sourceVisit; }
            set
            {
                if (sourceVisit != value)
                {
                    sourceVisit = value;
                    RaisePropertyChanged("SourceVisit");
                }
            }
        }

        public VisitEditViewModel ParentViewModel
        {
            get { return parentViewModel; }
            set
            {
                if (parentViewModel != value)
                {
                    parentViewModel = value;
                    RaisePropertyChanged("ParentViewModel");
                }
            }
        }      

        public bool AddCommandEnabled
        {
            get { return addCommandEnabled; }
            set
            {
                if (addCommandEnabled != value)
                {
                    addCommandEnabled = value;
                    RaisePropertyChanged("AddCommandEnabled");
                }
            }
        }

        public abstract string TabHeader { get; }
        #endregion

        #region Methods
        public virtual void Add()
        {

        }

        public virtual void Remove()
        {

        }
        #endregion

        #region Events

        #endregion
    }
}
